#include "window.h"
#include "setup.cpp"
#include <QtGui>

using namespace std;

int main(int argc, char *argv[]) {
  QApplication app(argc, argv);
  app.setOrganizationName("szupie");
	app.setApplicationName("ki");
	
	app.setQuitOnLastWindowClosed(false);
	
	QSettings settings;
	if (!settings.value("setupDone").toBool() || app.arguments().last() == "--setup") {
	  setup();
	  settings.setValue("setupDone", true);
	}
	
  InputWin window;
  window.show();
  
  return app.exec();
}
